package com.zy.business.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.zy.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description 工作汇报实体类
 * @Author  zhangxiaojia
 * @Date 2020-06-19
 */

@Data
@ApiModel
@TableName ("tb_work_report" )
public class TbWorkReport extends BaseEntity {

	/**
	 * 主键
	 */
	@TableId(value = "id")
	 @ApiModelProperty
	private Long id;

	/**
	 * 发送对象
	 */
   	 @TableField("send_user")
	 @ApiModelProperty(value ="发送对象",required = true)
	private String sendUser;

	/**
	 * 日报内容
	 */
   	 @TableField("content" )
	 @ApiModelProperty(value ="日报内容",required = true)
	private String content;

	@TableField("report_date" )
	@ApiModelProperty(value ="汇报日期")
	@JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
   	 private Date reportDate;

	@TableField("is_notice" )
	@ApiModelProperty(value ="是否通知",required = true)
	private Integer isNotice;


	@TableField("create_user" )
	private Long createUser;

	/**
	 * 删除标志0未删除1已删除
	 */
	@TableLogic
	@TableField(value = "del_flag")
	@ApiModelProperty(hidden = true)
	private Integer delFlag;

	@TableField(exist = false)
	private String title;

	@TableField(exist = false)
	private String deptName;

	@TableField(exist = false)
	private Integer isRead;

	@TableField(exist = false)
	private Integer isEdit;

	@TableField(exist = false)
	private String sendUserName;

}
